// 封装的一个业务组件

import React from 'react'
import ReactDOM from 'react-dom'
import { Dialog } from './components/Dialog'

const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
    <React.Fragment>
        <Dialog title='友情提示' content="大家出门做好防护！" />

        <Dialog  content="一定会学好React的"> 
            <button>确定</button>
            <button>不确定</button>
        </Dialog>
    </React.Fragment>
)